package com.ruoyi.controller;

import com.ruoyi.common.Result;
import com.ruoyi.domain.ChatDTO;
import com.ruoyi.service.ChatService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname chatController
 * @Description TODO
 * @Date 2025/4/8 15:52
 * @Created by xxx
 */
@RestController
@Slf4j
@RequiredArgsConstructor
@Api(tags = "对话管理")
@RequestMapping("/api/v1/chat")
public class ChatController {
    private final ChatService ChatService;
    @PostMapping
    public Result chat(@RequestBody ChatDTO chatDTO) {
        return ChatService.chat(chatDTO);
    }
}
